﻿
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Index2</title>
</head>
<body>
    <div>
        index2--11111
        <br />
        @ViewData["key2"]
        <br />
        @ViewBag.key1
        <br />

        @{
            int num1 = 10;
            int num2 = 20;
            int result = num1 + num2;
        }


        <text>@result</text>

        @if (true)
        {
            <h1>12121212121212</h1>
            @:34343
            <text>45454545</text>
        }


        @{ string str = "HPIT";}
        <a href="abc@(str).ashx">学习</a>
        <br />


        <span>362520246@qq.com</span>
        @{ string qq = "246";}
        <span>可以智能识别邮箱格式为362520246@qq.com</span>
        <br />
        可以智能识别邮箱为362520@(qq)@@qq.com
        <br />



        @{ string alink = "<a href='http://www.baidu.com'>百度</a>";}
        @alink
        @Html.Raw(alink);

        @{bool ischeck = true;}
        <input type="checkbox" checked="@ischeck" />唱歌
        @{ bool isck = false;}
        <input type="checkbox" checked="@isck" />睡觉

    </div>
</body>
</html>
